<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
    <title>登录页</title>
    <link rel="stylesheet" href="./../Resources/plugins/layui/dist/css/layui.css">
    <link rel="stylesheet" href="./../Resources/css/common.css">
    <link rel="stylesheet" href="./../Resources/css/login.css">
</head>

<body class="layui-form" style="background-color: #fff;">
    <form>
        <div class="layui-header ws-header">
            <div class="layui-container">
                <div class="ws-logo">
                    <a class="logo" href="/">
                        <img src="./../Resources/img/logo.png" alt="layui">
                    </a>
                </div>
            </div>
        </div>
        <div class="container login-content">
            <div class="login-content-title">
                <div class="login-content-title-main">礼品购物商城欢迎您！</div>
                <div class="login-content-title-minor">欢迎回家！</div>
            </div>
            <div class="login-content-input">
                <div class="layui-form-item">
                    <div class="layui-input-wrap">
                        <div class="layui-input-prefix">
                            <i class="layui-icon layui-icon-username"></i>
                        </div>
                        <input type="text" name="username" value="" lay-verify="required" placeholder="请输入手机号码"
                            lay-reqtext="请输入手机号码" autocomplete="off" class="layui-input" lay-affix="clear">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-wrap">
                        <div class="layui-input-prefix">
                            <i class="layui-icon layui-icon-password"></i>
                        </div>
                        <input type="password" name="password" value="" lay-verify="required" placeholder="请输入密码"
                            lay-reqtext="请输入密码" autocomplete="off" class="layui-input" lay-affix="eye">
                    </div>
                </div>
                <div class="layui-form-item">
                    <!-- <input type="checkbox" name="remember" lay-skin="primary" title="记住密码"> -->
                    <a href="forget.html" style="float: right; margin-top: 7px;">忘记密码？</a>
                  </div>
            </div>
            <div class="login-content-btn">
                <div class="layui-form-item">
                    <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="login">登录</button>
                </div>
            </div>
            <div class="login-content-register">
                <fieldset class="layui-elem-field layui-field-title">
                    <legend>还没有账号？</legend>
                </fieldset>

                <div class="layui-form-item login-other">
                    <a href="./register.html" class="layui-btn layui-btn-fluid layui-bg-red">注册帐号</a>
                </div>
            </div>
        </div>
    </form>

    <script src="./../Resources/plugins/layui/dist/layui.js"></script>
    <script>
        layui.use(function () {
            var form = layui.form;
            var layer = layui.layer;
            // 提交事件
            form.on('submit(login)', function (data) {
                var field = data.field; // 获取表单字段值
                // 显示填写结果，仅作演示用
                layer.alert(JSON.stringify(field), {
                    title: '当前填写的字段值'
                });
                // 此处可执行 Ajax 等操作
                // …
                return false; // 阻止默认 form 跳转
            });
        });
    </script>


</body>

</html>